import random
import time

print("装饰")


def outer(func):
    def inner():
        print("我要睡觉了")
        func()
        print("我起床了")

    return inner


@outer
def sleep():
    print("睡眠中")
    time.sleep(random.randint(1, 5))


sleep()